home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / utility / pock51.zip / WHICH.BAT < prev    next >
DOS Batch File  |  1997-07-26  |  454b  |  17 lines

  1. echo off
  2. if "%1"=="/?" goto usage
  3. if "%1"=="" goto usage
  4. d . :path /IEs[t]hP~~/.u + %1.* %2 %3 %4
  5. goto exit
  6. :usage
  7. echo.
  8. echo WHICH: Find out from where DOS will find program f1 to run.
  9. echo usage: WHICH f1 o1 o2 o3 ..
  10. echo where o1, o2 .. are additional options
  11. echo.
  12. echo e.g.   WHICH FORMAT      Show from where the program "FORMAT" is run
  13. echo        WHICH ED /c a:    Find from where "ED" is run and copy it to drive A:
  14. echo.
  15. :exit
  16.  
  17.